package com.superm.service.impl;

import com.superm.entity.Order;
import com.superm.entity.SaleOrderDetails;
import com.superm.mappers.SaleOrderDetailsMapper;
import com.superm.service.SaleODetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SaleODetServiceImpl implements SaleODetService {
    @Autowired
    private SaleOrderDetailsMapper detailsMapper;
    @Override
    public Integer addSaleDetails(List<Order> orders) {
        return detailsMapper.addSaleDetails(orders);
    }

    @Override
    public List<SaleOrderDetails> allSaleOid(Integer SealOid) {
        return detailsMapper.allSaleOid(SealOid);
    }
}
